import dayjs from 'dayjs'
export function diffTime(endTime, starTime) {
  return dayjs(endTime).diff(starTime, "day");
}
export function formerTime(time, former = 'MM月DD日') {
  return dayjs(time).format(former)
}
// export function formerTime1(time) {
//   return dayjs(time).format('MM.DD')
// }